package TestCTR;

import java.util.ArrayList;

import org.junit.Test;

import CTRLayer.SupervisorCTR;
import ModelLayer.Supervisor;

public class TestSupervisorCTR
{
	public SupervisorCTR svc = new SupervisorCTR();
	public Supervisor sv = new Supervisor();
	
	@Test
	public void testFindAllSupervisors()
	{
		ArrayList<Supervisor> svclist = svc.findAllSupervisors();
		int id = 0;
		System.out.println("\nElementer i Supervisor : " + svclist.size() + "\n");
		while (id <= svclist.size())
		{
			System.out.println("Company : " + svclist.get(id).getCompany());
			id++;
		}
	}

	@Test
	public void testFindSupervisorID()
	{
		int id = 1;
		sv = svc.findSupervisorID(id);
		System.out.println("\nFindSupervisorID : " + id);
		System.out.println("Company            : " + sv.getCompany());
	}

}
